/*
 * Copyright 2008 Lucas Tan.
 * This copyright notice must always remain intact whenever you use or distribute 
 * the source code contained in this file.
 * Any usage of any code in this file, either in derived work or
 * through the use of external linkage,
 * must always be credited with the author's name.
 * 
 * 
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 
 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES 
 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 
 * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, 
 * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 
 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 
 * DEALINGS IN THE SOFTWARE.
 * 
 * */
using System;
using System.Collections.Generic;
using System.Text;

namespace PassKeeper.Data
{
	/// <summary>
	/// Exception that is thrown when a required attribute is missing.
	/// </summary>
	public sealed class MissingAttributeException : AttributeParseException
	{
		public MissingAttributeException(string elementName, string attributeName, string message, Exception innerException)
			: base(elementName, attributeName, message, innerException)
		{
			//do nothing.
		}

		public MissingAttributeException(string elementName,string attributeName, string message )
			: this(elementName, attributeName, message, null)
		{
			//do nothing.
		}

		public MissingAttributeException(string elementName, string attributeName )
			: this(elementName, attributeName, null, null)
		{
			//do nothing.
		}


		public MissingAttributeException(string elementName, string attributeName, Exception innerException)
			: this(elementName, attributeName, null, innerException)
		{
			//do nothing.
		}

	}
}
